package cn.iocoder.yudao.module.xiaoBizHandler.convert.attach;

import cn.iocoder.yudao.framework.common.pojo.PageResult;
import cn.iocoder.yudao.module.xiaoBizHandler.controller.admin.attach.vo.AttachCreateReqVO;
import cn.iocoder.yudao.module.xiaoBizHandler.controller.admin.attach.vo.AttachRespVO;
import cn.iocoder.yudao.module.xiaoBizHandler.controller.admin.attach.vo.AttachUpdateReqVO;
import cn.iocoder.yudao.module.xiaoBizHandler.dal.dataobject.attach.AttachDO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 附件 Convert
 */
@Mapper
public interface AttachConvert {

    AttachConvert INSTANCE = Mappers.getMapper(AttachConvert.class);

    AttachDO convert(AttachCreateReqVO bean);

    AttachDO convert(AttachUpdateReqVO bean);

    AttachRespVO convert(AttachDO bean);

    List<AttachRespVO> convert(List<AttachDO> list);

    PageResult<AttachRespVO> convertPage(PageResult<AttachDO> bean);

}
